﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DataCenter.Interface.Model
{
    [AttributeUsage(AttributeTargets.Class)]
    public class ComponentAttribute : Attribute
    {
        public ComponentAttribute(string name)
        {
            this.name = name;
        }
        public ComponentAttribute(string name, string version, string description)
            : this(name)
        {
            this.version = new Version(version);
            this.description = description;
        }

        private string name;
        private Version version;
        private string description;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public Version Version
        {
            get { return version; }
            set { version = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }
    }
}
